package electionView;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

import electionCtrl.Election;

public class VoteFinishedGui extends NonUserInputElectionGui {
	
	private JPanel panel;
	private ToneGen sound;
	
	public VoteFinishedGui(Election election)
	{
		super(election, new JFrame("Finished!!!"));
		this.panel = new JPanel();
		this.panel.add(new JLabel("You Voted"), BorderLayout.CENTER);

		this.mainFrame.add(panel);
		this.mainFrame.setSize(140,100);
		
		this.sound = new ToneGen();
	}
	
	public void playSound()
	{
		this.sound.happySound();
	}
}
